import React from 'react'
import ReactDOM from 'react-dom';

import { createRoot } from 'react-dom/client'
import './index.css';
import App from './App';

import storageUtils from './utils/storageUtils'
import memoryUtils from './utils/memoryUtils'

// 读取local中保存的user，保存到内存中
const user = storageUtils.getUser()
memoryUtils.user = user

// React18更新的引用方法
const container = document.getElementById('root')
const root = createRoot(container);

root.render(
  <React.StrictMode>
    <App />
  </React.StrictMode>,
)

